<?php
$this->breadcrumbs = array(
    'Post' => array('index'),
    'Manage',
);
?>
<div class="box">
    <header>
        <h5><i class="icon icon-user"></i> - Manager post</h5>
    </header>
    <div class="box">

	<?php
	$this->widget('bootstrap.widgets.TbGridView', array(
	    'id' => 'post-grid',
	    'dataProvider' => $model->search(),
	    'filter' => $model,
	    'columns' => array(
		array(
		    'name' => 'post_id',
		    'header' => '#',
		    'htmlOptions' => array(
			'width' => 50
		    )
		),
		'title',
		array(
		    'name' => 'total_like',
		    'filter' => false
		),
		array(
		    'name' => 'total_share',
		    'filter' => false
		),
		array(
		    'name' => 'total_comment',
		    'filter' => false
		),
		array(
		    'name' => 'category_id',
		    'value' => '$data->cat->name',
		    'filter' => $aCategories
		),
		array(
		    'name' => 'time_created',
		    'type' => 'datetime',
		    'filter' => false
		),
		/*
		  'activation_key',
		  'type',
		  'status',
		  'joined',
		  'first_name',
		  'last_name',
		  'gender',
		  'social_provider',
		  'social_uid',
		  'access_token',
		  'bio',
		  'last_login_time',
		  'last_login_ip',
		  'country',
		  'state',
		  'city',
		  'address',
		  'phone',
		  'telephone',
		  'mobile',
		  'postcode',
		  'featured',
		  'avatar',
		  'webpage',
		  'timezone',
		  'language',
		 */
		array(
		    'class' => 'bootstrap.widgets.TbButtonColumn',
		),
	    ),
	));
	?>
    </div>
</div>